/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.edu.utn.frsf.tpae.a2012.g03.model;

import java.util.Date;

/**
 *
 * @author fededalla
 */
public class CuentaCorriente  extends Cuenta {
    private int ctaCteMaxOpMens;
    private double ctaCteCostMant;
    private double ctaCteLimSdoNeg;
    private double ctaCteIntSdoNeg;
    private Cuenta cta;

    public CuentaCorriente() {
    }

    public CuentaCorriente(Integer ctaId) {
        this.ctaId = ctaId;
    }

    public CuentaCorriente(int ctaCteMaxOpMens, double ctaCteCostMant, double ctaCteLimSdoNeg, double ctaCteIntSdoNeg, Integer ctaId, long ctaNro, Date ctaFechApe, double ctaSdoAct) {
    	super(ctaId, ctaNro, ctaFechApe, ctaSdoAct);
        this.ctaCteMaxOpMens = ctaCteMaxOpMens;
        this.ctaCteCostMant = ctaCteCostMant;
        this.ctaCteLimSdoNeg = ctaCteLimSdoNeg;
        this.ctaCteIntSdoNeg = ctaCteIntSdoNeg;
    }

    public Integer getCtaId() {
        return ctaId;
    }

    public void setCtaId(Integer ctaId) {
        this.ctaId = ctaId;
    }

    public int getCtaCteMaxOpMens() {
        return ctaCteMaxOpMens;
    }

    public void setCtaCteMaxOpMens(int ctaCteMaxOpMens) {
        this.ctaCteMaxOpMens = ctaCteMaxOpMens;
    }

    public double getCtaCteCostMant() {
        return ctaCteCostMant;
    }

    public void setCtaCteCostMant(double ctaCteCostMant) {
        this.ctaCteCostMant = ctaCteCostMant;
    }

    public double getCtaCteLimSdoNeg() {
        return ctaCteLimSdoNeg;
    }

    public void setCtaCteLimSdoNeg(double ctaCteLimSdoNeg) {
        this.ctaCteLimSdoNeg = ctaCteLimSdoNeg;
    }

    public double getCtaCteIntSdoNeg() {
        return ctaCteIntSdoNeg;
    }

    public void setCtaCteIntSdoNeg(double ctaCteIntSdoNeg) {
        this.ctaCteIntSdoNeg = ctaCteIntSdoNeg;
    }

    public Cuenta getCta() {
        return cta;
    }

    public void setCta(Cuenta cta) {
        this.cta = cta;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CuentaCorriente)) {
            return false;
        }
        CuentaCorriente other = (CuentaCorriente) object;
        if ((this.ctaId == null && other.ctaId != null) || (this.ctaId != null && !this.ctaId.equals(other.ctaId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.CtaCte[ ctaId=" + ctaId + " ]";
    }
    
}
